#!/bin/sh
# After the system installed, please check setuid files first for security.
# mkdir /backup
# run this commond after installed the os.------ find / -perm -4000 -0 -perm -2000 > /backup/setuid.list

/usr/bin/find / -perm -4000 -o -perm -2000 > /tmp/setuid.check 2> /dev/null
for file in `/bin/cat /tmp/setuid.check`
do
    /bin/grep $file /backup/setuid.list > /dev/null
       
        if [ "$?" != "0"  ]

           then  echo "$file isn't in list ! it is danger !!!!!"
        fi
 done
